#!/bin/bash
#
# script to install in /etc/ppp/ip-up.d
#
# sets up environment for running pppd-script
#


# This is sourced by if-up, so we avoid setting any shell or
# environment variables that will be seen by other scripts.

PPP_IFACE="$1" \
    DEVICE="$2" \
    SPEED="$3" \
    PPP_LOCAL="$4" \
    PPP_REMOTE="$5" \
    PPP_TTY="$2" \
    PPP_PID="$PPID" \
    PPP_IPPARAM="$6" \
    /usr/lib/flimflam/scripts/pppd-script $*
